package com.example.bloodbankapplication.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class OpenHelper extends SQLiteOpenHelper{
	private final static String DB_NAME="Bloodbank";
	private final static int DB_VERSION=1;

	public OpenHelper(Context context) {
		super(context, DB_NAME, null, DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("Create table Donor (firstname varchar,lastname varchar NOT NULL UNIQUE,phno varchar,bloodgroup varchar,emailid varchar,date varchar)");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
	}

}
